import initBusFrame from "./bus-frame";

const searchParams = new URLSearchParams(location.search);

let url = searchParams.get("url");
if (url) {
  if (!/^https?:\/\//.test(url)) {
    url = PUBLIC_URL + url;
  }
  initBusFrame(url);
  document.title = searchParams.get("title") || '-';
}
